Optimal. Leaf size=123 \[ \frac {(9-m) \csc ^3(e+f x) (a+a \sin (e+f x))^{3+m}}{12 a^3 f}-\frac {\csc ^4(e+f x) (a+a \sin (e+f x))^{3+m}}{4 a^3 f}-\frac {\left (12-9 m+m^2\right ) \, _2F_1(3,3+m;4+m;1+\sin (e+f x)) (a+a \sin (e+f x))^{3+m}}{12 a^3 f (3+m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 123, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2786, 91, 79,
67} \begin {gather*} -\frac {\left (m^2-9 m+12\right ) (a \sin (e+f x)+a)^{m+3} \, _2F_1(3,m+3;m+4;\sin (e+f x)+1)}{12 a^3 f (m+3)}-\frac {\csc ^4(e+f x) (a \sin (e+f x)+a)^{m+3}}{4 a^3 f}+\frac {(9-m) \csc ^3(e+f x) (a \sin (e+f x)+a)^{m+3}}{12 a^3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 67
Rule 79
Rule 91
Rule 2786
Rubi steps
\begin {align*} \int \cot ^5(e+f x) (a+a \sin (e+f x))^m \, dx &=\frac {\text {Subst}\left (\int \frac {(a-x)^2 (a+x)^{2+m}}{x^5} \, dx,x,a \sin (e+f x)\right )}{f}\\ &=-\frac {\csc ^4(e+f x) (a+a \sin (e+f x))^{3+m}}{4 a^3 f}+\frac {\text {Subst}\left (\int \frac {(a+x)^{2+m} \left (-a^2 (9-m)+4 a x\right )}{x^4} \, dx,x,a \sin (e+f x)\right )}{4 a f}\\ &=\frac {(9-m) \csc ^3(e+f x) (a+a \sin (e+f x))^{3+m}}{12 a^3 f}-\frac {\csc ^4(e+f x) (a+a \sin (e+f x))^{3+m}}{4 a^3 f}+\frac {\left (12 a^2-a^2 (9-m) m\right ) \text {Subst}\left (\int \frac {(a+x)^{2+m}}{x^3} \, dx,x,a \sin (e+f x)\right )}{12 a^2 f}\\ &=\frac {(9-m) \csc ^3(e+f x) (a+a \sin (e+f x))^{3+m}}{12 a^3 f}-\frac {\csc ^4(e+f x) (a+a \sin (e+f x))^{3+m}}{4 a^3 f}-\frac {(12-(9-m) m) \, _2F_1(3,3+m;4+m;1+\sin (e+f x)) (a+a \sin (e+f x))^{3+m}}{12 a^3 f (3+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 83, normalized size = 0.67 \begin {gather*} -\frac {\left ((3+m) \csc ^3(e+f x) (-9+m+3 \csc (e+f x))+\left (12-9 m+m^2\right ) \, _2F_1(3,3+m;4+m;1+\sin (e+f x))\right ) (1+\sin (e+f x))^3 (a (1+\sin (e+f x)))^m}{12 f (3+m)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.14, size = 0, normalized size = 0.00 \[\int \left (\cot ^{5}\left (f x +e \right )\right ) \left (a +a \sin \left (f x +e \right )\right )^{m}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{m} \cot ^{5}{\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\mathrm {cot}\left (e+f\,x\right )}^5\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________